projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
223a2a6
)
(ada-search-ignore-string-comment):
author
Karl Heuer
<kwzh@gnu.org>
Fri, 4 Sep 1998 19:58:39 +0000
(19:58 +0000)
committer
Karl Heuer
<kwzh@gnu.org>
Fri, 4 Sep 1998 19:58:39 +0000
(19:58 +0000)
In "found in comment" case, don't beginning-of-line after forward-line.
lisp/progmodes/ada-mode.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/ada-mode.el
b/lisp/progmodes/ada-mode.el
index 8614ca4421af0eae7c0aa237793757ce6af38510..bf4860d75bf58e3c39149554ba6004a3c2634af6 100644
(file)
--- a/
lisp/progmodes/ada-mode.el
+++ b/
lisp/progmodes/ada-mode.el
@@
-3022,9
+3022,10
@@
This works by two steps:
(progn
(re-search-backward "--" nil 1)
(goto-char (match-beginning 0)))
- (progn
- (forward-line 1)
- (beginning-of-line))))
+ (forward-line 1)
+ ;; Used to have (beginning-of-line) here,
+ ;; but that caused trouble at end of buffer with no newline.
+ ))
;;
;; found in string => skip it
;;